package com.renshine;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.renshine.base.util.Configuration;
import com.renshine.swing.component.dialog.LoginJDialog;

/**
 * 启动类
 * 
 * @author deyang
 *
 */
public class Start {
	
	@SuppressWarnings("resource")
	public static void main(String args[]) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("ApplicationContext.xml");
		LoginJDialog loginJDialog = ctx.getBean(LoginJDialog.class);
		// 还原上一次登录的信息
		loginJDialog.getLoginPanel().init(Configuration.getHasLoginUser());
		loginJDialog.setVisible(true);
	}
}
